package edu.cmu.cs211.pg.tests;

import static org.junit.Assert.assertEquals;

import java.util.HashSet;

import org.junit.Test;

import edu.cmu.cs211.pg.graph.Edge;
import edu.cmu.cs211.pg.graph.MyDirectedGraph;

public class GraphTest {
	@Test
	public void createTest ()
	{
		MyDirectedGraph<String,Edge<String>> g = new MyDirectedGraph<String,Edge<String>>();
		assertEquals(0, g.vertices().size());
	}
	
	/*
	 * small add test 
	 */
	public void addTest()
	{
		HashSet<String> hs = new HashSet<String>();
		hs.add("a");
		hs.add("b");
		hs.add("c");
		MyDirectedGraph<String, Edge<String>> g = new MyDirectedGraph<String, Edge<String>>(hs);
		assertEquals(3, g.vertices().size());
		
	}
	
	
	
}
